package com.openfeign.sender.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author H
 * @date 2024/12/1
 */
@FeignClient(name = "openfeign-receiver", fallback = ReceiverFeignFallback.class)
public interface ReceiverFeign {

    @GetMapping("receiver")
    String receiver(@RequestParam String username, @RequestParam String address);

}
